home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1461.dms / var1461.adf / GraphicalTricks / Example1.c < prev    next >
Text File  |  1992-05-18  |  4KB  |  96 lines

  1. /**********************************************************/
  2. /*                                                         */
  3. /* Amiga C Encyclopedia (ACE) V3.0      Amiga C Club (ACC) */
  4. /* -------------------------------      ------------------ */
  5. /*                                                         */
  6. /* Book:    ACM Graphics                Amiga C Club       */
  7. /* Chapter: GraphicalTricks             Tulevagen 22       */
  8. /* File:    Example1.c                  181 41  LIDINGO    */
  9. /* Author:  Anders Bjerin               SWEDEN             */
  10. /* Date:    92-04-29                                       */
  11. /* Version: 1.00                                           */
  12. /*                                                         */
  13. /*   Copyright 1992, Anders Bjerin - Amiga C Club (ACC)    */
  14. /*                                                         */
  15. /* Registered members may use this program freely in their */
  16. /*     own commercial/noncommercial programs/articles.     */
  17. /*                                                         */
  18. /***********************************************************/
  19.  
  20. /* This example demonstrates how you can use the Blitter to   */
  21. /* copy areas and do logical operations like "AND", "OR", and */
  22. /* "INVERT". These types of operations are necessary if you   */
  23. /* want to place a picture on top of a background area, but   */
  24. /* leave some areas unchanged.                                */
  25. /*                                                            */
  26. /* In this example we will copy a "source" picture on top of  */
  27. /* a "background". Only the masked areas should be copied,    */
  28. /* and the rest of the background should be left unchanged.   */
  29. /* TO illustrate how the binary operations are executed we    */
  30. /* are using two simple areas which should be combined, and   */
  31. /* we are only using four colours.                            */
  32. /*                                                            */
  33. /*   Source + Destination + Mask = Result                     */
  34. /*   ------   -----------   ----   ------                     */
  35. /*   0110     0123          0110   0113                       */
  36. /*   0220     1230          0110   1220                       */
  37. /*   3312     2301          1111   3312                       */
  38. /*   1002     3012          1001   1012                       */
  39. /*                                                            */
  40.  
  41. I am sorry but this file is only available for registered
  42. members. 
  43.  
  44. The registration fee is only £30, $60, SEK 300, or similar
  45. amount in your own currency (price includes everything). The
  46. Amiga C Encyclopedia is the largest collection of documents,
  47. examples and utilities in C for the Amiga and it is still among
  48. the cheapest manuals. But this is not all, a registered owner
  49. will also get:
  50.  
  51.   1. Two disks containing the last parts of the encyclopedia.
  52.      The disks will be sent by first class air mail.
  53.  
  54.   2. Registration card for the Amiga C Club (ACC).
  55.  
  56.   3. Immediate information about updates.
  57.  
  58.   4. Updated versions of the encyclopedia for only the cost of
  59.      disks plus postage and packing.
  60.  
  61.   5. Assistance with digitizing colour pictures and sampling
  62.      sound effects.
  63.  
  64.   6. Unlimited help with your C programs. You never have to be
  65.      alone with your problems.
  66.  
  67.   7. The right to use parts of the manual in your own
  68.      commercial/non-commercial programs/articles.
  69.  
  70. Can any other manual give you all this???
  71.  
  72. The simplest way of paying is to include the money in a letter
  73. in cash. US dollar bills, English pounds or Swedish SEK are
  74. preferred, but all currencies are accepted. You can also send
  75. the money as a "Postal Money Order", ask your local bank or
  76. post office. Please do not use cheques. It is sadly extremely
  77. expensive to cash a foreign cheque here in Sweden.
  78.  
  79. If you live in Scandinavia you can send the money to "Svenska
  80. Post Girot, postgiro konto: 641 88 30 - 3, betalnings-
  81. mottagare: Datra".
  82.  
  83. Please send the registration fee together with your complete
  84. address to:
  85.  
  86.   Datra, Amiga C Club
  87.   Anders Bjeri
  88.   Tulevagen 22
  89.   181 41  LIDINGO
  90.   SWEDEN
  91.  
  92. I have worked for more than four years now with this
  93. encyclopedia, and with your help I can continue to improve it.
  94.  
  95. Happy programming!!!
  96.